home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIXSLTException.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  112 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXSLTException.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXSLTException_h__
  6. #define __gen_nsIXSLTException_h__
  7.  
  8.  
  9. #ifndef __gen_nsIException_h__
  10. #include "nsIException.h"
  11. #endif
  12.  
  13. #ifndef __gen_domstubs_h__
  14. #include "domstubs.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIXSLTException */
  23. #define NS_IXSLTEXCEPTION_IID_STR "e06dfaea-92d5-47f7-a800-c5f5404d8771"
  24.  
  25. #define NS_IXSLTEXCEPTION_IID \
  26.   {0xe06dfaea, 0x92d5, 0x47f7, \
  27.     { 0xa8, 0x00, 0xc5, 0xf5, 0x40, 0x4d, 0x87, 0x71 }}
  28.  
  29. class NS_NO_VTABLE nsIXSLTException : public nsIException {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXSLTEXCEPTION_IID)
  33.  
  34.   /**
  35.      * The node in the stylesheet that triggered the exception.
  36.      */
  37.   /* readonly attribute nsIDOMNode styleNode; */
  38.   NS_IMETHOD GetStyleNode(nsIDOMNode * *aStyleNode) = 0;
  39.  
  40.   /**
  41.      * The context node, may be null
  42.      */
  43.   /* readonly attribute nsIDOMNode sourceNode; */
  44.   NS_IMETHOD GetSourceNode(nsIDOMNode * *aSourceNode) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSIXSLTEXCEPTION \
  50.   NS_IMETHOD GetStyleNode(nsIDOMNode * *aStyleNode); \
  51.   NS_IMETHOD GetSourceNode(nsIDOMNode * *aSourceNode); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSIXSLTEXCEPTION(_to) \
  55.   NS_IMETHOD GetStyleNode(nsIDOMNode * *aStyleNode) { return _to GetStyleNode(aStyleNode); } \
  56.   NS_IMETHOD GetSourceNode(nsIDOMNode * *aSourceNode) { return _to GetSourceNode(aSourceNode); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSIXSLTEXCEPTION(_to) \
  60.   NS_IMETHOD GetStyleNode(nsIDOMNode * *aStyleNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyleNode(aStyleNode); } \
  61.   NS_IMETHOD GetSourceNode(nsIDOMNode * *aSourceNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceNode(aSourceNode); } 
  62.  
  63. #if 0
  64. /* Use the code below as a template for the implementation class for this interface. */
  65.  
  66. /* Header file */
  67. class nsXSLTException : public nsIXSLTException
  68. {
  69. public:
  70.   NS_DECL_ISUPPORTS
  71.   NS_DECL_NSIXSLTEXCEPTION
  72.  
  73.   nsXSLTException();
  74.  
  75. private:
  76.   ~nsXSLTException();
  77.  
  78. protected:
  79.   /* additional members */
  80. };
  81.  
  82. /* Implementation file */
  83. NS_IMPL_ISUPPORTS1(nsXSLTException, nsIXSLTException)
  84.  
  85. nsXSLTException::nsXSLTException()
  86. {
  87.   /* member initializers and constructor code */
  88. }
  89.  
  90. nsXSLTException::~nsXSLTException()
  91. {
  92.   /* destructor code */
  93. }
  94.  
  95. /* readonly attribute nsIDOMNode styleNode; */
  96. NS_IMETHODIMP nsXSLTException::GetStyleNode(nsIDOMNode * *aStyleNode)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* readonly attribute nsIDOMNode sourceNode; */
  102. NS_IMETHODIMP nsXSLTException::GetSourceNode(nsIDOMNode * *aSourceNode)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* End of implementation class template. */
  108. #endif
  109.  
  110.  
  111. #endif /* __gen_nsIXSLTException_h__ */
  112.